package aga;

import javax.annotation.Resource;
import javax.jws.WebService;
import javax.xml.ws.WebServiceContext;

@WebService(endpointInterface = "aga.IHelloService")
public class HelloService implements IHelloService {
	@Resource
	private WebServiceContext context;

	@Override
	public String hello(String name) {
		return "Hello, " + name + "! [your principal is '" + context.getUserPrincipal() + "']";
	}
}
